#include <iostream>
using namespace std;
int main()
{
	int a,b;
	cout << "A = "; 
	cin  >> a;
	cout << "B = "; 
	cin  >> b;
    for (int i = a + 1;i < b;i++)
		cout << i;
		if (i != b-1)
		{
            cout << ", ";
		} 
	} 
	cout << endl << b - a - 2 << endl;
	return 0;
}
